<style type="text/css">
	
	div#search-analysis-details{
		display:none;
	}

	a#new_search{
		margin-top:5em; margin-left:20px;
	}
</style>
<div class="column1-unit">
	<div id="search-results-list">
		<table class="entitylist">
			<tr>
				<th class="top" scope="col">Fecha</th>
				<th class="top" scope="col">Paciente</th>
				<th class="top" scope="col">Amplitud Onda Diast&oacute;lica [%]</th>
				<th class="top" scope="col">Ancho Onda Sist&oacute;lica [ms]</th>
				<th class="top" scope="col">Aumentaci&oacute;n Radial [%]</th>
				<th class="top" scope="col"></th>
			</tr>
			
			<?php
				 if (count($dataset) > 0){ 
					foreach ($dataset as $row){	
			?>
				<tr>
					<td><?php echo Helper_Date::mysqlToDate($row["Fecha"]);?></td>
					<td><?php echo $row["Paciente"];?></td>
					<td><?php echo $row["AOD"];?></td>
					<td><?php echo $row["AOS"];?></td>
					<td><?php echo $row["IAR"];?></td>
					<td><a class="showAnalysis" href="<?php echo "analysis/get/".$row["id"];?>">Detalles</a></td>
				</tr>	
			<?php
					 }
				 }else{	
			?>
					<tr>
						<td colspan="6" style="text-align:center;">No se encontraron resultados para su b&uacute;squeda</td>
					</tr>
			<?php }?>
		</table>
		<a id="new_search" href="#">Regresar a configuracion de filtrado</a>
	</div>	
	<div id="search-analysis-details">
		<a class="backToSearch" stlye="display:block;text-decoration:none;float:right;" href="#">Volver a resultados de B&uacute;squeda</a>
		<div id="analysis-details"></div>
	
	</div>
	
	<script type="text/javascript">
		$j(document).ready(function(){
					
			$j("a.showAnalysis").click(function(){
				$j("#analysis-details").load(this.href);
				$j("#search-results-list").hide();
				$j("#search-analysis-details").show();
				return false;
			});

			$j("a.backToSearch").click(function(){
				$j("#search-results-list").show();
				$j("#search-analysis-details").hide();
				return false;
			});
			
			$j("#new_search").click(function(){
				FilterSearch.newSearch();
				return false;
			});

			
		});
	
	</script>

</div>
